﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Array
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] s = input.Split(' ').ToArray();
            int n = s.Length;
            int[] a = new int[n];
            for(int i = 0; i < n; i ++)
            {
                a[i] = int.Parse(s[i]);
            }

            int mina = a[0], maxa = a[0], sum = 0;
            double mean;
            for(int i = 0; i < n; i ++)
            {
                mina = Math.Min(mina, a[i]);
                maxa = Math.Max(maxa, a[i]);
                sum += a[i];
            }
            mean = (double)sum / n;
            Console.Write(maxa);
            Console.Write(" ");
            Console.Write(mina);
            Console.Write(" ");
            Console.Write(sum);
            Console.Write(" ");
            Console.Write(mean);
            Console.ReadKey();
        }
    }
}
